/**
 * 获取当前页面的网络地址
 * @return protocol+hostname+port
 */
export function visitUrlPrefix() {
    const protocol = window.location.protocol;
    const hostname = window.location.hostname;
    const port = window.location.port;
    return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  }
  